VT-d: re-phrase logic in vtd_set_hwdom_mapping() for clarity
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 2 Jul 2018 11:05:36 +0000 (13:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Jul 2018 11:05:36 +0000 (13:05 +0200)
commit2af20930a55906c430446d3765cf49b3247f8cb4
treeeb949a2b787c6cec8f250ca87692891674d77e3d
parent1f64f6f7eeb7e8e3252063bc73086600528ec723
VT-d: re-phrase logic in vtd_set_hwdom_mapping() for clarity

It is hard to reconcile the comment at the top of the loop in
vtd_set_hwdom_mapping() with the if statement following it. This patch
re-phrases the logic, preserving the semantics, but making it easier
to read.

The patch also modifies the Xen command line documentation to make it
clear that iommu_inclusive_mapping only applies to pages up to the 4GB
boundary.

NOTE: This patch also corrects the indentation of the printk() towards
      the end of vtd_set_hwdom_mapping().

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
docs/misc/xen-command-line.markdown
xen/drivers/passthrough/vtd/x86/vtd.c